<?php
 
class Faq extends MY_Controller 
{
	var $curl = 'faq';
	var $name = 'faq';
	var $search = '';
	var $language;
	var $submenu = "_menu";
	var $id_category;
	var $category_alias;

	function __construct()
	{
		parent::__construct();
        
        $this->load->model('/public/faq_model');
        
		$this->validation->set_fields($this->faq_model->fields);

		$this->data['Title'] = T_('FAQ Manager');

		$this->language = parent::getLang();
		
		$this->name = T_('FAQ Manager');		
    }
	
	function index()
	{	
		//$per_page = 20;
		

		//$config = array('per_page' => $per_page, 'faq_status' => 1, 'order' => '', 'direction' => 'DESC');
		$this->faq_model->searchAll();
		
		$this->renderLayout();
    }
}

?>